<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        div {
            width: 100px;
            height: 100px;
            background: pink;
            position: absolute;
        }
    </style>
</head>

<body>

    <button id="btn">button</button>
    <div></div>

    <script src="../../jQuery库/jquery-3.1.0.js"></script>
    <script>
        //把这些动画存储到一个动画队列里面
        //stop:停止当前正在执行的动画

        $("#btn").click(function() {

            //把这些动画存储到一个动画队列里面
            $("div").animate({
                    left: 800
                })
                .animate({
                    top: 400
                })
                .animate({
                    width: 300,
                    height: 300
                })
                .animate({
                    top: 0
                })
                .animate({
                    left: 0
                })
                .animate({
                    width: 100,
                    height: 100
                })
        })
    </script>
</body>

</html>